-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix linting the template check #287
Conversation
Yay it failed! |
{%- endif -%} | ||
{%- endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to @dpshelio for helping me on this one!
exclude: |- | ||
(?x)( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed to this syntax in the case that we need to ignore more than one thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get it. Why are we excluding this all of a sudden? And why all over the shop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look, it's the exact same exclude
s that we had before. It's just the format which has changed.
Unfortunately, @pre-commit isn't using an array for exclude
, so you have to rely on this ugly expression https://pre-commit.com/#regular-expressions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm missing something...
run: pre-commit run --all-files --color always --verbose | ||
working-directory: cookie-template | ||
run: |- | ||
git add . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐛-fix here ☝️ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That and the working-directory
. We were never actually linting the template before.
exclude: |- | ||
(?x)( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get it. Why are we excluding this all of a sudden? And why all over the shop?
Merged in |
Fixed now |
Co-authored-by: David Stansby <dstansby@gmail.com>
Someone reviewed it 🤯 thanks @stefpiatek! |
Noticed during my test of issue templates #273, that this was actually not working!
This should fail, due to dodgy linting.